<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./作业样式.css">
</head>
<body>
    <div class="box">
        <div class="shang">
            <p>英雄列表管理</p>
        </div>
        <div class="zhong">
            <input type="text" placeholder="输入英雄名称" class="s1"> <select name="" id="" class="s2">
                <option value="xb">--选择性别--</option>
                <option value="xb">男</option>
                <option value="xb">女</option>
            </select><input type="text" placeholder="输入年龄" class="s3"><button class="s4">搜索</button><button class="s5" onclick="cz()">重置</button>
        </div>
        <table border="1">
            <thead>
                <tr>
                    <th>编号</th>
                    <th>英雄名称</th>
                    <th>英雄性别</th>
                    <th>年龄</th>
                    <th>操作区</th>
                </tr>
            </thead>
            <tbody>
                <tr style="text-align: center;">
                    <td>1</td>
                    <td>大乔</td>
                    <td>男</td>
                    <td>18</td>
                    <td><button style="color: white; background-color: rgb(208, 84, 80); width: 50px; height: 30px; border-radius: 5px; border: none;">删除</button></td>
                </tr>
                <tr style="text-align: center;">
                    <td>2</td>
                    <td>小乔</td>
                    <td>女</td>
                    <td>20</td>
                    <td><button style="color: white; background-color: rgb(208, 84, 80); width: 50px; height: 30px; border-radius: 5px; border: none;">删除</button></td>
                </tr>
                <tr style="text-align: center;">
                    <td>3</td>
                    <td>鲁班</td>
                    <td>男</td>
                    <td>48</td>
                    <td><button style="color: white; background-color: rgb(208, 84, 80); width: 50px; height: 30px; border-radius: 5px; border: none;">删除</button></td>
                </tr>
                <tr style="text-align: center;">
                    <td>4</td>
                    <td>后羿</td>
                    <td>女</td>
                    <td>28</td>
                    <td><button style="color: white; background-color: rgb(208, 84, 80); width: 50px; height: 30px; border-radius: 5px; border: none;">删除</button></td>
                </tr>
                <tr style="text-align: center;">
                    <td>5</td>
                    <td>廉颇</td>
                    <td>男</td>
                    <td>28</td>
                    <td><button style="color: white; background-color: rgb(208, 84, 80); width: 50px; height: 30px; border-radius: 5px; border: none;">删除</button></td>
                </tr>
            </tbody>
        </table>
    </div>
</body>
</html>
<script>
    var mc=document.querySelector('.s1')
    var xb=document.querySelector('.s2')
    var nl=document.querySelector('.s3')
    function cz(){
        mc.value=''
        xb.value='--选择性别--'
        nl.value=''
    }
</script>